package name.raynal.tool;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class SebFile extends File {

	private static final long serialVersionUID = 890718458715454327L;
	private BufferedReader reader;

	public SebFile(String pathname) throws FileNotFoundException {
		super(pathname);
		init(new File(pathname));
	}

	private void init(File input) throws FileNotFoundException {
		reader = new BufferedReader(new FileReader(input));
	}

	public String readLine() throws IOException {
		String read = reader.readLine();
		if (read == null) reader.close();
		return read;
	}
}
